package com.str.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Author: ZhangWu, Anything is possible!
 * @CreateTime: 2023/04/11 13:37
 * @Description: 重置密码请求dto
 */
@Data
@Accessors(chain = true)
@ApiModel("重置密码请求dto")
public class ResetPasswordDto {

    /**
     * 旧密码
     */
    @ApiModelProperty(value = "旧密码")
    @NotNull(message = "旧密码不能为空")
    private String oldPassword;
    /**
     * 新密码
     */
    @ApiModelProperty(value = "新密码")
    @NotNull(message = "新密码不能为空")
    private String newPassword;
    /**
     * 确认密码
     */
    @ApiModelProperty(value = "确认密码")
    @NotNull(message = "确认密码不能为空")
    private String oncePassword;
}
